import React from 'react'
import { Modal } from "antd"
export default function Dialog({
    title,//标题
    render,//渲染函数
    dialogStutus,//是否展示状态
    setDialogStatus,//设置状态
    width = 600,//宽度
    CurrentRecord = {},
    isShowClose = true,
    className = ""
}) {
    return (
        <Modal
            title={title}
            className={className}
            width={width}
            open={dialogStutus}
            cancelText={""}
            okText={""}
            closable={isShowClose}
            destroyOnClose={true}
            footer={null}
            onCancel={() => {
                setDialogStatus(false)
            }}
        >
            {render()}
        </Modal>
    )
}
